package homework6.com.zut.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import homework6.com.zut.dao.OrderDao;
import homework6.com.zut.pojo.Order;
import homework6.com.zut.service.OrderService;

@Service("service")
public class OrderServiceImpl implements OrderService {
	@Autowired
	private OrderDao orderDao;
	@Override
	@Transactional(readOnly=true)
	public List<Order> findByUsername(String username) {
		return orderDao.findOrderByUsername(username);
	}

}